<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>CopyEntity</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">CopyEntity()</font></b></p>
<p><b>Syntax</b></p><blockquote>

Result = <font color="#006666"><b>CopyEntity</b></font>(#Entity, #NewEntity)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>





Creates a #NewEntity which is the exact copy of the specified #Entity. If <a href="../reference/purebasic_objects.html">#PB_Any</a> is used 
as '#NewEntity' parameter, the new entity number will be returned as 'Result'. 
<br>
<br>
If the 'Result' is 0, the entity copy has failed. If #NewEntity was already created, 
it will be automatically freed and replaced by the new one. 

 

</Blockquote><p><b>Supported OS  </b><Blockquote>All</Blockquote></p><center>&lt;- <a href=attachentityobject.html>AttachEntityObject()</a> - <a href=index.html>Entity Index</a> - <a href=createentity.html>CreateEntity()</a> -&gt;



</body></html>